<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>案例：输入内容</title>
</head>
<body>
    <input type="text" id="user" placeholder="用户名">
    <input type="text" id="email" placeholder="邮箱">
    <input type="button" value="提交" onclick="getInfo()">
    <ul id="view">

    </ul>
    <script src="static/js/jquery-3.7.1.min.js">
    </script>
    <script>
        function getInfo(){
            var username=$("#user").val()
            var email=$("#email").val()
            var data=username+"/"+email
            var newLI=$("<li>").text(data)
            $("#view").append(newLI)

        }
    </script>
</body>
</html>